const routes=[
    {
        title:'首页',
        key:'0-0',
        path:'/',
        component:()=>import('../views/home/Home.vue'),
    },
    {
        title:'轮播图管理',
        key:'0-1',
        path:'/banner',
        children:[
            {title:'轮播图列表',
            key:'0-1-0',
            path:'/banner/list',
            component:()=>import('../views/banner/Bannerlist.vue'),
            },
            {title:'添加轮播图',
             key:'0-1-1',
             path:'/banner/add',
            component:()=>import('../views/banner/Banneradd.vue'),
            }
        ]
    },
    {
        title:'产品管理',
        key:'0-2',
        path:'/pro',
        children:[
            {title:'产品列表',
            key:'0-2-0',
            path:'/pro/list',
            component:()=>import('../views/pro/Prolist.vue'),
            },
            {title:'产品筛选',
            key:'0-2-1',
            path:'/pro/search',
            component:()=>import('../views/pro/Proseach.vue'),
            },
        ]
        
    },
    {
        title:'用户管理',
        key:'0-3',
        path:'/user',
        component:()=>import('../views/user/user.vue'),
    },
    {
        title:'管理员管理',
        key:'0-4',
        path:'/admin',
        component:()=>import('../views/admin/Admin.vue'),
    },
    {
        title:'设置',
        key:'0-5',
        path:'/set',
        component:()=>import('../views/set/set.vue'),
    },
       
]
export default  routes
